<#import "macros.ftl" as godt>
<html>
	<head>
		<title>${component.name}</title>
		<link rel="stylesheet" href="../../css/reset.css" />
		<link rel="stylesheet" href="../../css/text.css" />
		<link rel="stylesheet" type="text/css" href="../../css/godt.css" />
		<link rel="stylesheet" href="../../css/960.css" />
		
	</head>
	<body>
		<div class="container_12">
			<div class="grid_12 border_rounded">
				<h1><strong>${component.name}</strong></h1>			
			</div>		
			<div class="clear"></div>
			<div class="grid_12 title">
				<h3><strong>General Properties</strong></h3>
			</div>
			<div class="clear"></div>
			<div class="grid_12 central">
				Type: <em>${component.type}</em><br/>
				Loader: <em>${component.loader}</em><br/>
				Location: <em>${component.location}</em>				
			</div>			
			<div class="clear"></div>
			<#list component.groups as group>
				<div class="grid_12 title" name="${group.name?default('')}">
					<h3><strong>${group.name?default('')}</strong></h3>
					Send Mode: <em>${group.sendMode}</em>					
				</div>
				<div class="clear"></div>
				<div class="grid_12 views">
					<table>
						<tr>
							<th colspan="4">Invoke Services</th>
						</tr>
						<tr>
							<th>Name</th>
							<th>Mode</th>
							<th>Parameters</th>
							<th>Result to Context</th>
						</tr>
						<#list group.invokes as invoke>
							<tr>
								<td><@godt.link component=registry.services[invoke.name] anchor=invoke.name/></td>
								<td>${invoke.mode}</td>
								<td>${invoke.parameters}</td>
								<td>${invoke.resultToContext}</td>
							</tr>
						</#list>
					</table>
				</div>
			</#list>
		</div>
	</body>
</html>